package org.zfes.snowier.zbss.xzy.mo.dtos.sys;

import java.io.Serializable;
import java.util.Date;

import org.zfes.snowier.zbss.xzy.mo.dtos.IBaseMDto;


/**
 * 內存相关信息
 * 
 */
public class SysMemDto   extends IBaseMDto{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	//所属部署拓扑
		private String devicesn;
		//实例key
		private String inskey;
		//实例秒数
		private String insremark;
		
		
	private Byte st=1;
	private Date ti;
	private String message;
	
	/**
	 * 内存总量
	 */
	private Long total;

	/**
	 * 已用内存
	 */
	private Long used;

	/**
	 * 剩余内存
	 */
	private Long free;
	/**
	 * 使用率
	 */
	private Double usages;

	public Long getTotal() {
		return total;
	}

	public SysMemDto setTotal(Long total) {
		this.total = total;
		return this;
	}

	public Long getUsed() {
		return used;
	}

	public SysMemDto setUsed(Long used) {
		this.used = used;
		return this;
	}

	public Long getFree() {
		return free;
	}

	public SysMemDto setFree(Long free) {
		this.free = free;
		return this;
	}

	public Double getUsages() {
		return usages;
	}

	public SysMemDto setUsages(Double usages) {
		this.usages = usages;
		return this;
	}

	public String getDevicesn() {
		return devicesn;
	}

	public SysMemDto setDevicesn(String devicesn) {
		this.devicesn = devicesn;
		return this;
	}

	public Byte getSt() {
		return st;
	}

	public SysMemDto setSt(Byte st) {
		this.st = st;
		return this;
	}

	public Date getTi() {
		return ti;
	}

	public SysMemDto setTi(Date ti) {
		this.ti = ti;
		return this;
	}

	public String getMessage() {
		return message;
	}

	public SysMemDto setMessage(String message) {
		this.message = message;
		return this;
	}
	public String getInskey() {
		return inskey;
	}

	public SysMemDto setInskey(String inskey) {
		this.inskey = inskey;
		return this;
	}

	public String getInsremark() {
		return insremark;
	}

	public SysMemDto setInsremark(String insremark) {
		this.insremark = insremark;
		return this;
	}

	@Override
	public String toString() {
		return "SysMemDto [devicesn=" + devicesn + ", inskey=" + inskey + ", insremark=" + insremark + ", st=" + st
				+ ", ti=" + ti + ", message=" + message + ", total=" + total + ", used=" + used + ", free=" + free
				+ ", usages=" + usages + "]";
	}
	







	
//	public String getTotal() {
//	return String.valueOf(Arith.div(Double.valueOf(total) , (1024 * 1024 * 1024), 2));
//}
//
//public void setTotal(String total) {
//	this.total = total;
//}
//
//public String getUsed() {
//	return String.valueOf(Arith.div(Double.valueOf(used), (1024 * 1024 * 1024), 2));
//}
//
//public void setUsed(String used) {
//	this.used = used;
//}
//
//public String getFree() {
//	return String.valueOf(Arith.div(Double.valueOf(free), (1024 * 1024 * 1024), 2));
//}
//
//public void setFree(String free) {
//	this.free = free;
//}
//
//public String getUsage() {
//	return String.valueOf(Arith.mul(Arith.div(Double.valueOf(used), Double.valueOf(total), 4), 100));
//}
//
//public void setUsage(String usage) {
//	this.usage =  usage;//String.valueOf(Arith.mul(Arith.div(Double.valueOf(used), Double.valueOf(total), 4), 100));
//}
	
}
